package com.tt.dp.command;

import com.tt.dp.command.model.Stereo;

public class StereoOnCommand implements Command{

    private Stereo stereo;

    public StereoOnCommand(Stereo stereo){
        this.stereo = stereo;
    }

    public void execute() {
        this.stereo.on();
        this.stereo.setCd();
        this.stereo.setVolume();
    }

    public void undo() {
        this.stereo.off();
    }
}
